.treeview {
    padding-left: 1rem;
}

.treeview-item {
    display: block;
    line-height: 2rem;
    padding-left: 1.4rem;
}

.treeview-item:has(>.treeview-item-header) {
    padding-left: 0;
}

.treeview-item .list-group-item {
    border: none;
}

.treeview-item-header {
    display: flex;
    align-items: center;
}

.treeview-item-title {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 0.25rem;
}

.treeview-item-header .treeview-item-title {
    margin-left: 0.4rem;
}

.treeview-item-header .btn-close {
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    box-shadow: none;
    box-sizing: border-box;
    transition: all 0.35s ease;
}

.treeview-item-header .btn-close:hover {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
    background-color: rgba(0, 0, 0, 0.15);
}

.treeview-item-open>.treeview-item-header .btn-close {
    transform: rotate(180deg);
}